feat(pi): deploy from CI-gated ref via comin (candidate C)#484
Open
etrobert-bot wants to merge 1 commit into
Open
feat(pi): deploy from CI-gated ref via comin (candidate C)#484etrobert-bot wants to merge 1 commit into
etrobert-bot wants to merge 1 commit into
Conversation
Replace pi's nightly system.autoUpgrade with comin, a pull-based GitOps deployer. comin polls the `deploy` ref every ~60s and switches to nixosConfigurations.pi. A new CI `deploy` job fast-forwards `deploy` to each merged commit only after all-builds passes, so pi never deploys raw main and converges within a minute of CI going green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #481
Candidate C (comin-based gated pull) — a third alternative to A (#483) and B (#482); only one of the three merges. Same shape as A (pi pulls a CI-gated
deployref), but the on-pi mechanism is comin instead ofsystem.autoUpgrade+ a custom gate script.What
cominflake input (github:nlewo/comin,nixpkgs.followsset; not in nixpkgs). Lock diff is comin + its transitive deps only — all existing inputs unchanged.deployjob as candidate A: main pushes only, afterall-buildssucceeds, fast-forwardsdeployviagit push origin HEAD:deploy.system.autoUpgraderemoved entirely;services.comintracksdeploy(branches.main.name = "deploy"), everything else at defaults — 60 s poll period,/var/lib/cominstate, no testing-branch wiring.Invariant: never deploy raw main
deployonly moves whenall-buildsis green (aarch64 closure already in Cachix via tower's post-build hook). comin is the sole deploy mechanism — no ungated nightly exception.Source-verified behavior (comin 0.13.0)
deployref, comin logs the missing branch and keeps polling — the unit never fails permanently.IsAlreadyDeployed; state survives reboots.lotrusted) drops it on LAN and tailnet — loopback only.Comparison criteria (vs A and B)
🤖 Generated with Claude Code